<script setup >
import { useCounterStore } from "../stores/counter"

const store = useCounterStore()
console.log(store)
</script>

<template>
  <div class="calculator">
    <h2>A组件</h2>
    <div>2倍计数：{{store.doubleCount}}</div>
    <div>平方计数：{{store.squareCount}}</div>
    <button @click="store.increment()">计数器值+1</button>
  </div>
</template>

<style scoped>

</style>
